package com.atguigu.classroom.user.controller;


import com.atguigu.classroom.model.user.UserInfo;
import com.atguigu.classroom.user.service.UserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author atguigu
 * @since 2022-07-17
 */
@Api(tags = "用户接口")
@RestController
@RequestMapping("/admin/user/userInfo/")
public class UserInfoController {
    @Autowired
    private UserInfoService userInfoService;
    @ApiOperation(value = "获取多个用户信息")
    @PostMapping("inner/getByIds/")
    public List<UserInfo> getByIds(@RequestBody List<Long> ids) {
        List<UserInfo> userInfoList=userInfoService.getByIds(ids);
        return userInfoList;
    }
}

